package com.jzb.binmvvmlib.util;

import android.content.Context;

/**
 * author jzb
 * Date: 2021/4/7
 * Describe:
 */
public class BinUtil {
    private static Context mContext;
    private BinUtil() {
        throw new UnsupportedOperationException("u can't instantiate me...");
    }

    public static void initContext(Context context){
        mContext = context;
    }

    public static Context getApplication() {
        if (mContext!=null){
            return mContext;
        }else {
            throw new UnsupportedOperationException("context 未初始化");
        }
    }

}
